package com.zls.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.stereotype.Component;

import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Component
//农场功能
public class TFarm {
    @TableId(value = "ID",type = IdType.AUTO)
    private int id; //基地主键
    private String province;//省份
    private String city;//城市
    private String district;//区域
    private String type;//基地类型
    private String name;//基地名称
    private String linkman;//基地负责人
    private String telephone;//手机号
    private String remark;//备注
    private Date createTime;//创建时间
    private Date updateTime;//更新时间
    private int userId;//用户id
    private String mainCrop;//主要农作物
    private int area;//面积
    private int img;//图片
    //一对一用户
    @TableField(exist = false)
    private SysUser sysUser;
}
